package me.zhengjie.modules.blog.repository;

import me.zhengjie.modules.blog.domain.BlogUser;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;

/**
 * @author zhangqiang
 * @date 2019-03-01
 */
public interface BlogUserRepository extends JpaRepository<BlogUser, Long>, JpaSpecificationExecutor {

    /**
     * findByUsername
     * @param username
     * @return
     */
    BlogUser findByUsername(String username);

    /**
     * findByEmail
     * @param email
     * @return
     */
    BlogUser findByEmail(String email);

}
